Navigation interface display method and apparatus, terminal, and storage medium

ABSTRACT

A navigation interface display method includes: obtaining real-time environment information; determining a first interface component based on a first navigation scene corresponding to the real-time environment information, the first interface component including a first base map and a first sky box); and displaying a navigation interface obtained by fusing the first base map and the first sky box. The first base map indicates a road surface environment, the first sky box indicates a sky environment, and styles of interface components corresponding to different navigation scenes are different.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application is a continuation application of PCT Patent ApplicationNo. PCT/CN2022/126694, filed on Oct. 21, 2022, which claims priority toChinese Patent Application No. 202111354456.4, entitled “NAVIGATIONINTERFACE DISPLAY METHOD AND APPARATUS, TERMINAL, STORAGE MEDIUM, ANDPROGRAM PRODUCT” filed on Nov. 16, 2021, the entire contents of both ofwhich are incorporated herein by reference.

FIELD OF THE TECHNOLOGY

Embodiments of the present disclosure relate to the technical field ofnavigation, and in particular, to a navigation interface display methodand apparatus, a terminal, a storage medium, and a program product.

BACKGROUND

At present, online navigation functions are widely used. For example,online car-hailing application software, navigation applicationsoftware, map application software, and the like are all required toprovide navigation functions.

A navigation interface generally provides multiple display modes. Aclient is provided with an operation portal, and a user may select a daymode, a night mode, or an automatic mode. In the automatic mode, aterminal directly switches the night mode and the day mode according toa preset sunup time and sundown time. For example, the day mode is from6:00 to 18:00, and the night mode is from 18:00 to 6:00 the next day.

However, the navigation interface only switches day mode and night modeaccording to a fixed time, and the mode transition is rigid and abrupt.For example, when approaching sundown, the ambient light is already darkwhile the navigation interface is still in the day mode. Due to a timedifference, a weather difference, and other factors, the environment indifferent regions differs greatly, and a scene in the navigationinterface may be inconsistent with an actual environment by using auniform mode.

SUMMARY

Embodiments of the present disclosure provide a navigation interfacedisplay method and apparatus, a terminal, a storage medium, and aprogram product. The following technical solution is adopted.

According to an aspect, the embodiments of the present disclosureprovide a navigation interface display method. The method is performedby a terminal. The method includes: obtaining real-time environmentinformation, the real-time environment information including real-timelocation information and real-time time information; determining a firstinterface component based on a first navigation scene corresponding tothe real-time environment information, the first interface componentincluding a first base map and a first sky box, the first base mapindicating a road surface environment, the first sky box indicating asky environment, and styles of interface components corresponding todifferent navigation scenes being different; and displaying a navigationinterface obtained by fusing the first base map and the first sky box.

According to another aspect, the embodiments of the present disclosureprovide a navigation interface display apparatus. The apparatusincludes: an obtaining module, configured to obtain real-timeenvironment information, the real-time environment information includingreal-time location information and real-time time information; adetermination module, configured to determine a first interfacecomponent based on a first navigation scene corresponding to thereal-time environment information, the first interface componentincluding a first base map and a first sky box, the first base mapindicating a road surface environment, the first sky box indicating asky environment, and styles of interface components corresponding todifferent navigation scenes being different; and a display module,configured to display a navigation interface obtained by fusing thefirst base map and the first sky box.

According to another aspect, the embodiments of the present disclosureprovide a terminal. The terminal includes at least one processor and atleast one memory. The at least one memory stores at least oneinstruction, at least one program, a code set, or an instruction set.The at least one instruction, the at least one program, the code set, orthe instruction set is loaded and executed by the at least one processorto implement the navigation interface display method as described in theforegoing aspects.

According to another aspect, the embodiments of the present disclosureprovide a non-transitory computer-readable storage medium. Thecomputer-readable storage medium stores at least one computer program.The computer program is loaded and executed by at least one processor toimplement the navigation interface display method as described in theforegoing aspects.

The technical solution provided in the embodiments of the presentdisclosure may include at least the following beneficial effects:

In the embodiments of the present disclosure, a navigation scene isdetermined by obtaining time information and location information of acurrent environment, and a navigation interface is displayed usinginterface components corresponding to the current navigation scene,whereby a virtual environment presented by the navigation interface isconsistent with the current actual environment, and a correspondingnavigation environment can be displayed based on the difference ofenvironments in different regions, the display effect of the navigationinterface is optimized, and the authenticity of the displayed content ofthe navigation interface is improved.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a schematic diagram of a style update mode of a navigationinterface.

FIG. 2 shows a flowchart of a navigation interface display methodaccording to an exemplary embodiment of the present disclosure.

FIG. 3 is a schematic diagram of a sky box and a base map according toan exemplary embodiment of the present disclosure.

FIG. 4 is a schematic diagram of interface component styles in differentnavigation scenes according to an exemplary embodiment of the presentdisclosure.

FIG. 5 shows a flowchart of a navigation interface display methodaccording to another exemplary embodiment of the present disclosure.

FIG. 6 is a schematic diagram of a style index according to an exemplaryembodiment of the present disclosure.

FIG. 7 is a schematic diagram of a display process of a navigationinterface according to an exemplary embodiment of the presentdisclosure.

FIG. 8 is a schematic diagram of element fusion processing according toan exemplary embodiment of the present disclosure.

FIG. 9 is a schematic diagram of adjusting a skew angle and a scale of anavigation interface according to an exemplary embodiment of the presentdisclosure.

FIG. 10 is a schematic diagram of a scale index according to anexemplary embodiment of the present disclosure.

FIG. 11 is a schematic diagram of a solar altitude angle calculationmodel according to an exemplary embodiment of the present disclosure.

FIG. 12 is a schematic diagram of a solar altitude angle calculationmodel according to another exemplary embodiment of the presentdisclosure.

FIG. 13 shows a flowchart of a navigation interface display methodaccording to yet another exemplary embodiment of the present disclosure.

FIG. 14 shows a flowchart of a navigation interface display methodaccording to a further exemplary embodiment of the present disclosure.

FIG. 15 shows a structural block diagram of a navigation interfacedisplay apparatus according to an exemplary embodiment of the presentdisclosure.

FIG. 16 shows a structural block diagram of a terminal according to anexemplary embodiment of the present disclosure.

DESCRIPTION OF EMBODIMENTS

A navigation interface generally provides multiple display modes. Aclient is provided with an operation portal, and a user may select a daymode, a night mode, or an automatic mode. In the automatic mode, aterminal directly switches the night mode and the day mode according toa preset sunup time and sundown time. For example, the day mode is from6:00 to 18:00, and the night mode is from 18:00 to 6:00 the next day. Asshown in FIG. 1 , the terminal displays the navigation interfaceaccording to a day scene style 101 from 6:00 to 18:00, and displays thenavigation interface according to a night scene style 102 from 18:00 to6:00 the next day. The foregoing display modes mainly have the followingproblems: There is only the determination of day and night, and there isno transition interval in time. The switching is too rigid, and thebrightness change of the interface cannot be consistent with the changeof light in the real external environment. The terminal switches adisplay mode according to a system time. Since different terminalsystems have different processing manners for time, the obtained systemtime may differ from an actual time. The sunup and sundown times onwhich the terminal is based are time zone standard times. Some countriesand regions have vast territory, and the difference in the sunup andsundown times of the regions is relatively large. For example, thedifference in the sunup and sundown times of a first region and a secondregion is about two hours. If a unified standard switching navigationinterface style is used, some of night time periods in the second regionwill be displayed as a day mode, while day time periods will bedisplayed as a night mode. Different interface update policies are notset based on the difference in network quality, and the terminal mayobtain more information for day-night mode switching when the networkquality is good, but cannot update the interface in time when thenetwork quality is poor.

In order to solve the foregoing technical problem, an embodiment of thepresent disclosure provides a navigation interface display method.According to the method, a navigation scene is determined by obtainingtime information and location information of a current environment, andan environment type of a terminal location is determined based onreal-time time information and real-time location information, whereby avirtual environment presented by the navigation interface is consistentwith the current actual environment. Compared with the method adoptingthe uniform time switching interface mode, a corresponding navigationenvironment can be displayed based on the difference of environments indifferent regions, the display effect of the navigation interface isoptimized, and the authenticity of the displayed content of thenavigation interface is improved.

FIG. 2 shows a flowchart of a navigation interface display methodaccording to an exemplary embodiment of the present disclosure. Thisembodiment describes an example in which the method is applied to aterminal executing a navigation application. The method includes thefollowing steps:

Step 201: Obtain real-time environment information.

In one embodiment, the terminal obtains real-time environmentinformation. The real-time environment information is information forupdating a virtual environment in a navigation interface. The virtualenvironment is used for reflecting an actual environment (time, place,weather, landscape, etc.) where a current user is located. The real-timeenvironment information includes real-time location information andreal-time time information such as latitude and longitude and date andtime of the current user (location).

In some embodiments, the real-time environment information may furtherinclude other real-time information, such as real-time weatherinformation.

In some embodiments, the terminal obtains the real-time environmentinformation when starting the navigation application. During theexecution of the navigation application, the terminal obtains thereal-time environment information every predetermined time interval soas to update the navigation interface according to an actual scene.During the execution of the navigation application, the terminal obtainsthe real-time environment information when receiving a trigger operationof the user on the navigation interface.

Step 202: Determine a first interface component based on a firstnavigation scene corresponding to the real-time environment information.

The first interface component includes a first base map and a first skybox. The first base map is used for displaying a road surfaceenvironment. The first sky box is used for displaying a sky environment.Styles of interface components corresponding to different navigationscenes are different.

In one embodiment, the terminal determines a first navigation scenebased on the real-time location information and the real-time timeinformation, and then determines a first interface component based onthe first navigation scene. For terminals at the same time (having thesame real-time time information) and at different places (havingdifferent real-time location information), the first interfacecomponents thereof are different. For example, also at 19:00, thenavigation interface displayed by the terminal of the first region is anight scene, while the navigation interface displayed by the terminal ofa third region is a dusk scene.

With respect to the land and sky in an actual environment, thenavigation interface is composed of a base map and a sky box. As shownin FIG. 3 , the virtual environment in the navigation interface iscomposed of a dome-shaped sky 301 and a base 302.

Schematically, as shown in FIG. 4 , a schematic diagram of a navigationinterface of six navigation scenes (dawn, morning, day, evening, dusk,and night) is shown. Styles of sky boxes and base maps corresponding todifferent navigation scenes are different, and the styles of the skyboxes and the base maps can reflect a sky view and a land view in thecorresponding scenes.

Step 203: Display a navigation interface obtained by fusing the firstbase map and the first sky box.

After obtaining the first base map and the first sky box, the terminalfuses the first base map and the first sky box, and then displays thenavigation interface obtained by fusing the first base map and the firstsky box based on a travel direction of the user and a current navigationperspective.

In summary, in this embodiment of the present disclosure, a navigationscene is determined by obtaining time information and locationinformation of a current environment, and a navigation interface isdisplayed using interface components corresponding to the currentnavigation scene, whereby a virtual environment presented by thenavigation interface is consistent with the current actual environment.Compared with the method adopting the uniform time switching interfacemode, a corresponding navigation environment can be displayed based onthe difference of environments in different regions, the display effectof the navigation interface is optimized, and the authenticity of thedisplayed content of the navigation interface is improved.

In one embodiment, on the basis of making the scene displayed by thenavigation interface more realistic, the terminal performs specialprocessing on the interface components, optimizes the navigationinterface obtained by element fusion, and solves the problem of rigidsky and ground transition and poor fusion effect. FIG. 5 shows aflowchart of a navigation interface display method according to anotherexemplary embodiment of the present disclosure. This embodimentdescribes an example in which the method is applied to a terminalexecuting a navigation application. The method includes the followingsteps:

Step 501: Obtain real-time environment information, the real-timeenvironment information including real-time location information andreal-time time information.

An example embodiment of step 501 is similar to that of step 201, and isnot described again in this embodiment of the present disclosure.

Step 502: Determine a first scene view based on the real-time locationinformation and the real-time time information.

The terminal determines a first scene view corresponding to a firstnavigation scene based on the real-time location information and thereal-time time information.

A scene view refers to a view in a navigation scene. The scene view isdetermined by the combination of time and place information. In oneembodiment, the terminal first determines a current scene view based onthe real-time location information and the real-time time information,and then determines the first interface component based on the firstscene view. Step 502 includes the following steps:

Step 502 a: Determine a sunup time and a sundown time corresponding to areal-time location based on latitude and longitude in the real-timelocation information and a date in the real-time time information.

Since the time of each region uses the standard time of thecorresponding time zone, the latitude difference will lead to differentviews in different regions at the same time. For example, in the sametime zone, the eastern region is in a night view, a sky view includesthe moon and stars, and the sky is black. The western region is in dusk,the sky view includes the sun, and the sky is yellow. The huescorresponding to the two land views are also different. If each regionuses the same navigation interface at the same time, the navigationinterfaces of some regions will be inconsistent with the actual scene.In one embodiment, in order to make the scene displayed by thenavigation interface closer to the real situation, the terminaldetermines a sunup time and a sundown time corresponding to a real-timelocation based on latitude and longitude in the real-time locationinformation and a date in the real-time time information, therebydetermining time periods corresponding to scene views based on a localsunup time and sundown time.

Step 502 b: Determine time periods corresponding to scene views based onthe sunup time, the sundown time, time differences between time periodscorresponding to the scene views and the sunup time, and timedifferences between the time periods corresponding to the scene viewsand the sundown time.

In one embodiment, a relationship (time difference) between the timeperiod corresponding to each scene view and the sunup time, and arelationship (time difference) between the time period corresponding toeach scene view and the sundown time are stored in the terminal. Whenthe sunup time (of the day) and the sundown time are obtained, theterminal may determine the time period corresponding to each scene viewat the current location.

Schematically, the navigation application is provided with interfacecomponents corresponding to six scene views. Assuming that the sunuptime is t_(up) and the sundown time is t_(down), (t_(up)−2) to t_(up)are time periods corresponding to the dawn, where (t_(up)−2) representstwo hours before the sunup. t_(up) to (t_(up)+2) are time periodscorresponding to the morning, where (t_(up)+2) represents two hoursafter the sunup. (t_(down)−1) to (t_(down)+1) are time periodscorresponding to the evening, where (t_(down)−1) represents one hourbefore the sundown, and (t_(down)+1) represents one hour after thesundown. (t_(down)+1) to (t_(down)+3) are time periods corresponding tothe dusk, where (t_(down)+3) represents three hours after the sundown.(t_(up)+2) to (t_(down)−1) are time periods corresponding to the day.(t_(down)+3) to (t_(up)−2) the next day are time periods correspondingto the night. After determining the sunup time and the sundown time, theterminal may determine specific time periods corresponding to six views.For example, if the sunup time of a region corresponding to real-timelocation information a is 5:30, the terminal of the region displays anavigation interface corresponding to the morning at 5:30 to 7:30. Ifthe sunup time of a region corresponding to real-time locationinformation b is 6:00, the terminal of the region displays a navigationinterface corresponding to the morning at 6:00 to 8:00, rather thandisplaying the same navigation view using a uniform time period.Accordingly, since the sunup time and the sundown time will changeconstantly, even if the terminals are located in the same region, thetime periods corresponding to various scene views in different periodsare different. For example, the time period corresponding to the morningin summer is earlier, and the time period corresponding to the morningin winter is later.

Step 502 c: Determine the first scene view based on correspondencesbetween the scene views and the time periods and a first time periodindicated by the real-time time information.

The terminal determines the first scene view corresponding to the firstnavigation scene based on correspondences between the scene views andthe time periods and a first time period among the time periodscorresponding to the scene views indicated by the real-time timeinformation. The terminal determines a time period where the real-timetime information is located, namely, the first time period, from thetime periods corresponding to multiple scene views.

After dividing the time periods corresponding to the scenes according toa preset time difference and the sunup and sundown times, the terminaldetermines the first scene view based on a correspondence of the sceneviews to the time periods (for example, a correspondence shown in step502 b) and the first time period (a time period to which the currenttime belongs) indicated by the real-time time information, whereby thescene view displayed by the terminal via the navigation interface isconsistent with the actual environment where the terminal is located.

Schematically, the real-time location information obtained by terminal Ais 116° 23′17″E and 39° 54′27″2N, and the real-time time information is6:00 on Nov. 8, 2021. Terminal A determines that the sunup time of theplace is 06:51 and the sundown time is 17:04 based on the longitude andlatitude and date, and finally determines that the first scene view isdawn based on the time period of each scene. The real-time locationinformation obtained by terminal B which is in the same time zone asterminal A is 86° 37′33″E and 42° 45′32″N, and the real-time timeinformation is 6:00 on Nov. 8, 2021. Terminal B determines that thesunup time of the place is 08:55 and the sundown time is 18:51 based onthe longitude and latitude and date, and finally determines that thefirst scene view is night based on the time period of each scene.

Step 503: Determine the first base map corresponding to the first sceneview based on correspondences between scene views and base map styles.

Styles of base maps corresponding to navigation scenes of differentscene views are different.

The navigation application is provided with base map stylescorresponding to the scene views, and the terminal determines a firstbase map corresponding to the first scene view based on thecorrespondence between the scene views and the base map styles. Thefirst base map is obtained by combining the base map style correspondingto the first scene view and a map corresponding to the real-timelocation information, and can reflect the actual environment where theuser is currently located.

In one embodiment, the terminal also displays the navigation interfacein combination with a current weather situation, thereby furtherimproving the authenticity of the navigation interface. Before step 503,the navigation interface display method according to this embodiment ofthe present disclosure further includes the following steps.

The terminal determines a first scene weather based on the real-timelocation information and the real-time time information. Exemplarily,the first scene weather is the weather presented in the first sceneview, and the first scene weather may also be described as the weatherin the first navigation scene.

In some embodiments, the terminal transmits a weather informationobtaining request to the background server. The weather informationobtaining request includes the real-time location information. Thebackground server queries weather information based on the request andtransmits the weather information to the terminal. The terminaldetermines the first scene weather based on the weather informationreturned by the background server (for example, the first scene weatheris determined based on information such as temperature, humidity, windspeed, rainfall, or snowfall). Alternatively, the terminal directlyqueries the weather information through a third-party platform so as todetermine the first scene weather.

Step 503 further includes the following steps:

Step 503 a: Determine the first base map corresponding to the firstscene view and the first scene weather based on correspondences of thescene views and scene weathers to the base map styles, the base mapstyles corresponding to different scene weathers under the same sceneview being different.

Schematically, under the same scene view, there are also base map stylescorresponding to different scene weathers. For example, “the sun is justrising” specifically includes base map styles such as “the sun is justrising, sunny”, “the sun is just rising, cloudy”, “the sun is justrising, rainy”, and “the sun is just rising, snowy”.

After the terminal determines the first scene weather based on thereal-time location information and the real-time time information, step503 a is performed.

Step 504: Determine the first sky box corresponding to the first sceneview based on correspondences between the scene views and sky boxstyles.

Styles of sky boxes corresponding to navigation scenes of differentscene views are different.

When considering the scene weather, step 504 further includes thefollowing steps:

Step 504 a: Determine the first sky box corresponding to the first sceneview and the first scene weather based on correspondences of the sceneviews and the scene weathers to the sky box styles, the sky box stylescorresponding to different scene weathers under the same scene viewbeing different.

Schematically, under the same scene view, there are also sky box stylescorresponding to different scene weathers. For example, “the sun is justrising” specifically includes sky box styles such as “the sun is justrising, sunny”, “the sun is just rising, cloudy”, “the sun is justrising, rainy”, and “the sun is just rising, snowy”. FIG. 6 shows aschematic diagram of a style index, showing a correspondence betweenscene views, scene weathers, style identifiers, and style descriptions.

After the terminal determines the first scene weather based on thereal-time location information and the real-time time information, step504 a is performed. It is to be noted that the order of execution ofstep 503 a and step 504 a is not limited in this embodiment of thepresent disclosure.

Schematically, FIG. 7 shows a schematic diagram of a process in which aterminal displays a navigation interface based on real-time environmentinformation. The terminal determines a current scene based oninformation such as time, location, and weather, then searches for afirst interface component corresponding to a navigation scene via astyle engine, and finally fuses the first interface component to obtainthe navigation interface. FIG. 7 shows display effects of threenavigation scenes corresponding to a general navigation interface and aroad-level navigation interface.

The order of execution of step 503 and step 504 is not limited in thisembodiment of the present disclosure.

Step 505: Display a navigation interface obtained by fusing the firstbase map and the first sky box.

In one embodiment, when the terminal fuses the first base map and thefirst sky box, transition regions at a junction are fused, so as tosolve the problem that the fusion effect of the base map and the sky boxis poor and the transition is rigid. Step 505 includes the followingsteps:

Step 505 a: Combine the first base map and the first sky box to obtain afirst virtual scene.

After obtaining the first base map and the first sky box, the terminalfirst combines and concatenates the first base map and the first sky boxin a manner that the base map is below the sky box, so as to obtain acomplete model corresponding to the first virtual scene.

Step 505 b: Transparently mix the transition region in the first virtualscene, the transparently-mixed transition region being displayed as asemi-transparent effect.

The terminal transparently mixes the transition region in the firstvirtual scene to obtain a processed first virtual scene, and thetransparently-mixed transition region is displayed as a semi-transparenteffect in the processed first virtual scene.

In one embodiment, the first base map is connected to the first sky box,and a region in a first height above a contact surface between the firstbase map and the first sky box is a transition region. The terminaldetermines a transition region based on the first virtual scene obtainedby combining the first base map and the first sky box, and transparentlymixes the transition region, thereby solving the problems that thetransition is rigid and the stitching effect is poor.

Specifically, the terminal does not transparently mix the sky boxes andthe base maps of all the transition regions in the field of view, buttransparently mixes the boundary between the sky and the base in acaptured picture based on a photographing perspective of a virtualcamera.

As shown in FIG. 8 , a first sky box 802 is located above a first basemap 801. The terminal determines a transition region 803 based on afirst height, and transparently mixes the transition region, whereby thetransition region 803 is a semi-transparent region.

Step 505 c: Display the navigation interface based on a navigationpicture obtained by photographing the first virtual scene via a virtualcamera.

The terminal displays the navigation interface based on a navigationpicture obtained by photographing the processed first virtual scene viaa virtual camera. In one embodiment, the sky box and the base map areboth stereoscopic images, and the navigation picture in the navigationinterface is obtained by the virtual camera photographing the firstvirtual scene according to a photographing angle. Step 505 c furtherincludes the following steps:

Step 1: Determine a skew angle of the virtual camera based on a skewangle adjustment range, a scale adjustment range, and a first scale, thefirst scale being determined based on a default scale and a receivedscaling operation.

The first scale is referred to as a current scale. Exemplarily, thecurrent scale refers to a scale applied to a first navigation picture.

In one embodiment, after the terminal executes the navigationapplication, the navigation interface is displayed according to adefault scale and a default skew angle. When the scaling operation ofthe user is received, the navigation interface is updated by adjustingthe skew angle and the scale based on a scaling-down proportion or ascaling-up proportion indicated by the scaling operation. The firstnavigation picture may be a navigation picture after a picture scalingoperation and/or a skew angle adjustment operation.

Exemplarily, as shown in FIG. 9 , when receiving a scaling-up operationon the navigation picture, the terminal increases the skew angle andincreases the scale based on the scaling-up proportion. That is, whenthe user scales down the map, the skew angle is enlarged, the sky boxdisplay region is increased, the base map display region is decreased,and an overhead perspective gradually approaches an eye levelperspective. As shown in FIG. 9 , the terminal initially displays anavigation interface 901 at a skew angle of 40° and a scale of 500 m,and displays a navigation interface 902 at a skew angle of 65° and ascale of 10,000 m based on a scaling-up proportion when a scaling-upoperation is received from the user.

In one embodiment, the terminal determines the first scale based on ascaling proportion indicated by the scaling operation of the user (forexample, the scaling proportion is determined based on a swipe distanceof a two-finger reverse swipe operation). FIG. 10 shows a table of acorrespondence between a scale level and an actual physical length.After the first scale is determined, the skew angle of the virtualcamera is determined based on a skew angle calculation formula.

Assuming that the first scale is nScaleLevel, the skew anglef_(SkewAngle) is calculated as follows.

f_(SkewAngle)=20+(nScaleLevel−ScaleLevel1)*(Max_(SkewAngle)−Min_(SkewAngle))/(ScaleLevel2−ScaleLevel1)

where Min_(SkewAngle) is the minimum skew angle (referred to as “minimumangle”), Max_(SkewAngle) is the maximum skew angle (referred to a“maximum angle”), and ScaleLevel2 is greater than ScaleLevel1.

For example, the scale adjustment range is scale level 13 to scale level18 and the skew angle adjustment range is 20 to 50 degrees. Assumingthat the first scale is nScaleLevel, f_(SkewAngle)=20° whennScaleLevel<13; f_(SkewAngle)=50° when nScaleLevel>18; andf_(SkewAngle)=20+(nScaleLevel−13)*(50−20)/(18−13) when13<nScaleLevel<18.

Step 2: Determine a display proportion of a first sky box display regionto a maximum sky box display region based on a ratio of a first angledifference to a second angle difference, the first angle differencebeing an angle difference between the skew angle and a minimum angle inthe skew angle adjustment range, and the second angle difference beingan angle difference between a maximum angle and the minimum angle in theskew angle adjustment range.

Exemplarily, the first sky box display region is referred to as acurrent sky box display region. The first sky box display region refersto a sky box display region in the navigation picture corresponding tothe first navigation scene.

Step 3: Determine a sky box display region of the first sky box and abase map display region of the first base map based on the displayproportion and the maximum sky box display region.

Exemplarily, the sky box display region of the first sky box refers tothe foregoing first sky box display region.

In one embodiment, the ratio of the sky box display region to the basemap display region in the picture captured by the virtual camera atdifferent skew angles is different. As the skew angle is larger, the skyratio is larger, and the base map ratio is smaller.

Schematically, a display area of the sky box display region of the firstsky box is calculated as follows.

f _(ratio)=Max_(ratio)*(f_(SkewAngle)−Min_(SkewAngle))/(Max_(SkewAngle)−Min_(SkewAngle))

where f_(ratio) is the area (or height) of the sky box display region ofthe first sky box, and Max_(ratio) is the maximum display area (orheight) of the sky box. Schematically, when the ratio of the sky boxdisplay region to the interface exceeds 0.5, the base map display regionwill be compressed, the real physical range of the base map display willalso be compressed, the balance between sky and land cannot be achieved,and the navigation information that can be displayed in the interface isalso less. Therefore, a developer sets the maximum ratio of the sky boxdisplay region to 0.5, namely, Max_(ratio) is half of the navigationinterface (or navigation picture).

Step 4: Semi-transparently process a virtual object having anintersection with the sky box display region in the display region ofthe first base map.

The terminal semi-transparently processes a virtual object having anintersection with the first sky box display region in the base mapdisplay region of the first base map to obtain the semi-transparentlyprocessed navigation picture.

A virtual object having an intersection with a sky box display region inthe navigation picture is displayed as a semi-transparent effect, thesky box display region is determined based on a skew angle adjustmentrange, a scale adjustment range, and a scaling operation, and thescaling operation is configured to adjust a scale and a skew angle ofthe virtual camera.

In order to reduce the blocking of the sky box region by a building, theterminal hides a virtual object such as the building outside the fieldof view, and semi-transparently processes a virtual object having anintersection with the sky box display region in the display region inthe field of view. As shown in FIG. 8 , building A is located outsidethe field of view, and the terminal hides the building. Building B islocated within the field of view, and the terminal determines whetherthere is an intersection with the sky box display region based on theskew angle of the current virtual camera. If yes, semi-transparentprocessing is performed thereon.

Step 5: Display the navigation interface based on the semi-transparentlyprocessed navigation picture.

After determining the sky box display region of the first sky box andthe base map display region of the first base map, the terminal displaysthe navigation interface based on the semi-transparently processednavigation picture.

In another embodiment, the terminal also supports the presentation of aprojection effect of the solar radiation on the base map, namely addingshadowing effects to buildings, public settings, vehicles, etc. in thebase map. A direct solar radiation point moves between the Tropic ofCapricorn and the Tropic of Cancer every year, and the sun rises in theeast and sets in the west every day. Therefore, the solar radiationangle changes anytime and anywhere. The terminal determines a solarradiation angle based on the real-time time information and thereal-time location information so as to determine the first shadoweffect of the virtual object. Step 505 further includes the followingsteps:

Step 505 d: Obtain a real-time solar altitude angle corresponding to thereal-time time information and the real-time location information.

In one embodiment, step 505 d includes the following steps:

Step 6: Determine a direct solar radiation latitude based on the date inthe real-time time information.

Step 7: Determine the real-time solar altitude angle based on areal-time latitude in the real-time location information and the directsolar radiation latitude.

FIG. 11 shows a schematic diagram of a solar radiation map, where asolar altitude angle h of place B is taken as a solar incidence angle inthe navigation scene. Φ is the latitude of place B (namely, real-timelatitude), δ is the latitude of a current direct solar radiation point A(namely, the direct solar radiation latitude). h+θ+γ+90°=180°, whereγ=φ−δ, and the distance of the sun from the earth is much larger thanthe radius of the earth, whereby θ is negligible. Therefore, the solaraltitude angle h of place B is h=90°−(φ−δ). FIG. 12 shows a modelcorresponding to a navigation scene. When the sun directly radiates abase map plane, a movement locus of the sun rising in the east andsetting in the west is U-R1-D, and a movement locus plane U-R1-D-O-U isperpendicular to the base map plane. When the sun does not directlyradiate the base map plane, the locus of the sun rising in the east andsetting in the west is U-R2-D, and an included angle between themovement locus plane U-R2-D-O-U and the base map plane is α, where αcorresponds to the solar altitude angle h of place B in FIG. 11 .

Step 505 e: Determine a first shadow effect of a virtual object on thefirst base map based on the real-time solar altitude angle, thereal-time time information, and the real-time location information.

Step 505 f: Display, according to the first shadow effect, thenavigation interface obtained by fusing the first base map and the firstsky box.

Based on the real-time solar altitude angle, the real-time timeinformation, and the real-time location information, the terminaldetermines the orientation of the sun in the actual environment and theshadow effect of a ground object, and then determines the first shadoweffect of the virtual object on the first base map. The navigationinterface obtained by fusing the first base map and the first sky box isdisplayed according to the first shadow effect.

In this embodiment of the present disclosure, on the one hand, theterminal transparently mixes the intersection of the sky box and thebase map, and semi-transparently processes the virtual object in thetransition region, whereby the fusion of the sky and the ground in thenavigation interface is more natural, and the boundary is avoided to betoo clear. On the other hand, the solar altitude angle and the sunup andsundown times are determined based on the real-time time information andthe real-time location information, whereby the time period of eachscene view is more in line with the local situation, and the shadoweffect of the virtual object can be determined based on the solaraltitude angle, while external information such as weather is added toenrich the navigation scene, so as to solve the problem of largeenvironmental differences in different regions, and make the navigationinterface more realistic and consistent with the actual environment.

The foregoing embodiments show how the terminal displays the navigationinterface based on the real-time environment information. Obtainingreal-time information required by the terminal through a networkconnection cloud service is a standard solution. However, the user maybe in a complex network situation at any time in a real-timeenvironment. For example, in a region with no network signal or weaksignal, such as a tunnel, a normal response of the background servercannot be obtained, or a satellite signal cannot even be received. Thisembodiment of the present disclosure provides two policies for obtainingthe real-time environment information, namely, an online policy and anoffline policy, so as to solve the problem that the style of thenavigation interface cannot be switched in time in response to poornetwork quality. FIG. 13 shows a flowchart of a navigation interfacedisplay method according to another exemplary embodiment of the presentdisclosure. This embodiment describes an example in which the method isapplied to a terminal executing a navigation application. The methodincludes the following steps:

Step 1301: Determine a navigation interface update policy based on afirst network quality, the navigation interface update policy includingan online policy and an offline policy.

The first network quality refers to a current network quality. Thecurrent network quality refers to a network quality when the navigationinterface is updated.

In one embodiment, the navigation interface update policy is determinedbased on the first network quality. When the network quality is good,the online policy is adopted to obtain the real-time environmentinformation and the first interface component from the backgroundserver, so as to improve the accuracy of the real-time environmentinformation and reduce terminal power consumption. When the networkquality is poor, the offline policy is adopted to obtain or calculatethe real-time environment information locally, so as to ensure thetimeliness of navigation interface update. Step 1301 specificallyincludes the following steps:

Step 1301 a: Transmit a network quality detection request to abackground server in response to a navigation interface updateinstruction.

When receiving the navigation interface update instruction, the terminaltransmits the network quality detection request to the backgroundserver, and requests the cloud network speed detection service to checkthe network condition of the terminal. In some embodiments, whenreceiving a trigger operation of the user on the navigation interface,the terminal determines that the navigation interface update instructionis received. When an interface update time cycle is reached, theterminal determines that the navigation interface update instruction isreceived. This embodiment of the present disclosure is not limitedthereto.

In one embodiment, step 1301 a further includes the following steps:

Step 8: Obtain local environment information.

The local environment information includes local location informationand local time information.

Step 9: Transmit the network quality detection request and aninformation obtaining request to the background server, the informationobtaining request including the local environment information, and thebackground server being configured to determine cloud environmentinformation based on the local environment information and transmit thecloud environment information to the terminal in response to that thenetwork quality is normal.

The terminal transmits a network quality detection request carryinglocal environment information and a network signal to the backgroundserver, and requests to obtain accurate location information and timeinformation when the network quality is good. For example, the terminaltransmits a local system time, a base station signal, and/or a wirelessfidelity (WiFi) signal to the server, and the background serverdetermines cloud environment information, such as the location of theterminal, based on the base station signal and/or the WiFi signal aswell as a positioning service.

Step 1301 b: Determine that the navigation interface update policy isthe online policy in response to receiving a network quality detectionresponse transmitted by the background server and the network qualitydetection response indicating that a network quality is normal.

Step 1301 c: Determine that the navigation interface update policy isthe offline policy in response to receiving the network qualitydetection response and the network quality being abnormal, or notreceiving the network quality detection response within a firstduration.

When the network quality is good, the terminal adopts the online policy.For example, the background server feeds back a current network speed tothe terminal, and the terminal determines a policy to be adopted basedon the current network speed and a network speed threshold. If thecurrent network speed is higher than the network speed threshold, theonline policy is adopted. If the current network speed is lower than thenetwork speed threshold, the offline policy is adopted.

In one embodiment, when the background server determines that thenetwork quality of the terminal is good, the real-time environmentinformation is transmitted to the terminal while the network qualitydetection response is returned, so as to simplify the interactionprocess between the terminal and the background server and improve theinterface update efficiency.

Accordingly, when the network quality is poor, the terminal adopts theoffline policy.

Step 1302: Obtain the real-time environment information through thenavigation interface update policy.

After determining the navigation interface update policy, the terminalobtains the real-time environment information based on an informationobtaining logic corresponding to the corresponding policy. Step 1302specifically includes the following steps:

Step 1302 a: Determine the real-time environment information based onthe local environment information and the cloud environment informationin the network quality detection response in response to the navigationinterface update policy being the online policy.

In one embodiment, the local time information includes a terminal systemtime and a global positioning system (GPS) time, and cloud timeinformation in the cloud environment information is a server time. Whenan online policy is adopted, the process of obtaining real-time timeinformation includes: determining the terminal system time as areal-time time in response to a time difference between any two of theterminal system time, the server time, and the GPS time being less thana time difference threshold; determining the GPS time as the real-timetime in response to the time difference between the terminal system timeand the GPS time being greater than the time difference threshold; anddetermining the server time as the real-time time in response to notobtaining the GPS time and the time difference between the terminalsystem time and the server time being greater than the time differencethreshold.

The terminal obtains the system time from a local system, obtains theGPS time from the GPS positioning signal, and obtains the server timefrom the background server when performing network quality check. Then,the difference of the three times is checked. In response to smalldifferences among the three times, the local system time is used as thebasis. In response to large differences among the three times, the GPStime is preferentially used. If the GPS time is not obtained, the servertime is used. Accordingly, if both the GPS time obtained by the terminaland the server time fail, the policy is switched to the offline policy,and the terminal system time is directly determined as the real-timetime.

In one embodiment, cloud location information in the cloud environmentinformation is a server-determined positioning location. When an onlinepolicy is adopted, the process of obtaining real-time locationinformation includes: determining the server-determined positioninglocation as a real-time location.

The terminal obtains a server-determined positioning location based onan online location service, and determines the server-determinedpositioning location as the real-time location if the server-determinedpositioning location is obtained successfully. The policy is switched tothe offline policy if the server-determined positioning location isobtained unsuccessfully.

Step 1302 b: Determine the local environment information as thereal-time environment information in response to the navigationinterface update policy being the offline policy.

In one embodiment, the local time information includes a terminal systemtime and a GPS time. When an offline policy is adopted, the process ofobtaining real-time time information includes: determining the terminalsystem time as the real-time time in response to not obtaining the GPStime or a time difference between the GPS time and the terminal systemtime being less than a time difference threshold; and determining theGPS time as the real-time time in response to the time differencebetween the terminal system time and the GPS time being greater than thetime difference threshold.

When the connection between the terminal and the background serverfails, the terminal determines the real-time time based on the systemtime and the GPS time. That is, the GPS time is preferentially used.When the GPS signal is obtained unsuccessfully, the local system time isused as the basis.

In one embodiment, the local location information includes a GPSpositioning location and a historical positioning location. When anoffline policy is adopted, the process of obtaining real-time locationinformation includes: determining the GPS positioning location as thereal-time location in response to obtaining the GPS positioninglocation; determining a last positioning location in the historicalpositioning location as the real-time location in response to notobtaining the GPS positioning location; and determining a defaultnavigation location as the real-time location in response to notobtaining the GPS positioning location and in the absence of thehistorical positioning location.

The terminal obtains the GPS positioning location based on the GPSsignal. If the GPS positioning location is obtained unsuccessfully, itis checked whether to save a historical location. If the historicallocation is saved, the previous location is returned. If the historicallocation is not saved, a default location of the navigation applicationis used.

In another embodiment, the terminal also needs to obtain real-timeweather information. When the online policy is adopted, the terminalrequests to obtain the real-time weather information, the sunup time,the sundown time, and information such as travel suggestions from thebackground server. When the request fails or the offline policy isadopted, the terminal uses default weather information (for example,sunny days) and calculates the sunup time and the sundown time.

Step 1303: Determine a first interface component based on a firstnavigation scene corresponding to the real-time environment information.

In some embodiments, when the navigation interface update policy is theoffline policy, the terminal obtains the first interface componentcorresponding to the real-time environment information from a localelement library based on a correspondence of navigation scenes tointerface components. When the navigation interface update policy is theonline policy, the terminal transmits an element obtaining requestcontaining real-time environment information to the background server,and the background server transmits the latest first interface componentcorresponding to the real-time environment information to the terminal,or after determining the real-time environment information of theterminal in the foregoing steps, the background server directlytransmits the first interface component to the terminal when feedingback the real-time environment information. This embodiment of thepresent disclosure is not limited thereto.

Step 1304: Display a navigation interface obtained by fusing the firstbase map and the first sky box.

Example embodiments of step 1303 to step 1304 are similar to those ofthe foregoing step 202 to step 203, and will not be described in detailin this embodiment of the present disclosure.

In this embodiment of the present disclosure, the online policy and theoffline policy are provided to update the navigation interface, and theproblem that the navigation interface style cannot be switched in timein response to that no network is solved by offline fusion.

In connection with the foregoing embodiments, in a schematic example,the process of performing a navigation interface display task by theterminal is shown in FIG. 14 . The process includes the following steps:

Step 1401: Determine whether a network quality satisfies a condition. Ifyes, step 1402 is performed. If no, step 1403 is performed.

Step 1402: Execute an online policy.

Step 1403: Execute an offline policy.

Step 1404: Obtain a real-time location. If the real-time location isobtained unsuccessfully, step 1405 is performed to obtain a GPSlocation. If the real-time location is obtained successfully, step 1406is performed next.

Step 1405: Obtain the GPS location.

Step 1406: Request weather, a sunup time, and a sundown time. If therequest fails, step 1407 is performed to calculate the sunup time andthe sundown time. If the request is successful, step 1408 is performednext.

Step 1407: Calculate the sunup time and the sundown time.

Step 1408: Request base map and sky box styles. If the request fails,step 1409 is performed to divide scene time periods and obtain the basemap and sky box styles locally. If the request is successful, step 1410is performed next.

Step 1409: Divide the scene time periods, and obtain the base map andsky box styles locally.

Step 1410: Dynamically adjust the base map and sky box styles and adisplay proportion.

In one embodiment, the navigation interface display method in theforegoing embodiments may be applied to a navigation application. Thenavigation application may be a stand-alone application or a programassembly run by and depending on other types of applications/web pages.For example, when the user starts a vehicle-mounted navigation in avehicle during driving, or triggers to update a navigation interface,the terminal transmits a network quality detection request to thebackground server, and determines to update the navigation interfaceusing the online policy or the offline policy based on a network qualitydetection result. The terminal obtains real-time environment informationsuch as real-time time information, real-time location information, andreal-time weather information via the corresponding policy, determinesthe current real environment of the terminal based on the real-timeenvironment information, and then determines interface componentscorresponding to the real environment, namely, a first sky box and afirst base map. The first sky box and the first base map can reflect theview, weather, and the like of the real environment where the terminalis located. Styles of the interface components are determined based onthe real-time environment information so as to display the navigationinterface, whereby the navigation interface can reflect the realenvironment where the user is currently located, thereby avoiding thesituation where the navigation scene displayed by the terminal in someregions does not match an actual scene when a uniform interfaceswitching mode is used due to different time differences and climates.In this way, the user can also perceive an external real environment inreal-time time in the vehicle.

FIG. 15 is a structural block diagram of a navigation interface displayapparatus according to an exemplary embodiment of the presentdisclosure. The apparatus includes the following components:

an obtaining module 1501, configured to obtain real-time environmentinformation, the real-time environment information including real-timelocation information and real-time time information;

a determination module 1502, configured to determine a first interfacecomponent based on a first navigation scene corresponding to thereal-time environment information, the first interface componentincluding a first base map and a first sky box, the first base mapindicating a road surface environment, the first sky box indicating asky environment, and styles of interface components corresponding todifferent navigation scenes being different; and

a display module 1503, configured to display a navigation interfaceobtained by fusing the first base map and the first sky box.

In some embodiments, the determination module 1502 includes:

-   -   a first determination unit, configured to determine a first        scene view corresponding to the first navigation scene based on        the real-time location information and the real-time time        information;    -   a second determination unit, configured to determine the first        base map corresponding to the first scene view based on        correspondences between scene views and base map styles, styles        of base maps corresponding to navigation scenes of different        scene views being different; and    -   a third determination unit, configured to determine the first        sky box corresponding to the first scene view based on        correspondences between the scene views and sky box styles,        styles of sky boxes corresponding to navigation scenes of        different scene views being different.

In some embodiments, the first determination unit is further configuredto:

-   -   determine a sunup time and a sundown time corresponding to a        real-time location based on latitude and longitude in the        real-time location information and a date in the real-time time        information;    -   determine time periods corresponding to scene views based on the        sunup time, the sundown time, time differences between time        periods corresponding to the scene views and the sunup time, and        time differences between the time periods corresponding to the        scene views and the sundown time; and    -   determine the first scene view based on correspondences between        the scene views and the time periods and a first time period        among the time periods corresponding to the scene views        indicated by the real-time time information.

In some embodiments, the second determination unit is further configuredto:

-   -   determine a first scene weather corresponding to the first scene        view based on the real-time location information and the        real-time time information; and    -   determine the first base map corresponding to the first scene        view and the first scene weather based on correspondences of the        scene views and scene weathers to the base map styles, the base        map styles corresponding to different scene weathers under the        same scene view being different.

The third determination unit is further configured to:

-   -   determine the first sky box corresponding to the first scene        view and the first scene weather based on correspondences of the        scene views and the scene weathers to the sky box styles, the        sky box styles corresponding to different scene weathers under        the same scene view being different.

In some embodiments, the first base map is connected to the first skybox, and a region in a first height above a contact surface between thefirst base map and the first sky box is a transition region.

The display module 1503 includes:

-   -   a combination unit, configured to combine the first base map and        the first sky box to obtain a first virtual scene;    -   a processing unit, configured to transparently mix the        transition region in the first virtual scene, the        transparently-mixed transition region being displayed as a        semi-transparent effect; and    -   a first display unit, configured to display the navigation        interface based on a navigation picture obtained by        photographing the first virtual scene via a virtual camera.

In some embodiments, a virtual object having an intersection with a skybox display region in the navigation picture is displayed as asemi-transparent effect, the sky box display region is determined basedon a skew angle adjustment range, a scale adjustment range, and ascaling operation, and the scaling operation is configured to adjust ascale and a skew angle of the virtual camera.

In some embodiments, the first display unit is further configured to:

-   -   determine a skew angle of the virtual camera based on a skew        angle adjustment range, a scale adjustment range, and a first        scale, the first scale being determined based on a default scale        and a received scaling operation;    -   determine a display proportion of a first sky box display region        to a maximum sky box display region based on a ratio of a first        angle difference to a second angle difference, the first angle        difference being an angle difference between the skew angle and        a minimum angle in the skew angle adjustment range, and the        second angle difference being an angle difference between a        maximum angle and the minimum angle in the skew angle adjustment        range;    -   determine a sky box display region of the first sky box and a        base map display region of the first base map based on the        display proportion and the maximum sky box display region;    -   semi-transparently process a virtual object having an        intersection with the sky box display region in the base map        display region of the first base map to obtain the        semi-transparently processed navigation picture; and    -   display the navigation interface based on the semi-transparently        processed navigation picture.

In some embodiments, the display module 1503 includes:

-   -   a first obtaining unit, configured to obtain a real-time solar        altitude angle corresponding to the real-time time information        and the real-time location information;    -   a fourth determination unit, configured to determine a first        shadow effect of a virtual object on the first base map based on        the real-time solar altitude angle, the real-time time        information, and the real-time location information; and    -   a second display unit, configured to display, according to the        first shadow effect, the navigation interface obtained by fusing        the first base map and the first sky box.

In some embodiments, the obtaining unit is further configured to:

-   -   determine a direct solar radiation latitude based on the date in        the real-time time information; and    -   determine the real-time solar altitude angle based on a        real-time latitude in the real-time location information and the        direct solar radiation latitude.

In some embodiments, the obtaining module 1501 includes:

-   -   a fifth determination unit, configured to determine a navigation        interface update policy based on a first network quality, the        navigation interface update policy including an online policy        and an offline policy; and    -   a second obtaining unit, configured to obtain the real-time        environment information through the navigation interface update        policy.

In some embodiments, the fifth determination unit is further configuredto:

-   -   transmit a network quality detection request to a background        server in response to a navigation interface update instruction;    -   determine that the navigation interface update policy is the        online policy in response to receiving a network quality        detection response transmitted by the background server and the        network quality detection response indicating that a network        quality is normal; and    -   determine that the navigation interface update policy is the        offline policy in response to receiving the network quality        detection response and the network quality being abnormal, or        not receiving the network quality detection response within a        first duration.

In some embodiments, the fifth determination unit is further configuredto:

-   -   obtain local environment information; and    -   transmit the network quality detection request and an        information obtaining request to the background server, the        information obtaining request including the local environment        information, and the background server being configured to        determine cloud environment information based on the local        environment information and transmit the cloud environment        information to the terminal in response to that the network        quality is normal.

The second obtaining unit is further configured to:

-   -   determine the real-time environment information based on the        local environment information and the cloud environment        information in the network quality detection response in        response to the navigation interface update policy being the        online policy; and    -   determine the local environment information as the real-time        environment information in response to the navigation interface        update policy being the offline policy.

In some embodiments, the local environment information includes localtime information, the local time information includes a terminal systemtime and a GPS time, and cloud time information in the cloud environmentinformation is a server time.

The second obtaining unit is further configured to:

-   -   determine the terminal system time as a real-time time in        response to a time difference between any two of the terminal        system time, the server time, and the GPS time being less than a        time difference threshold;    -   determine the GPS time as the real-time time in response to the        time difference between the terminal system time and the GPS        time being greater than the time difference threshold; and    -   determine the server time as the real-time time in response to        not obtaining the GPS time and the time difference between the        terminal system time and the server time being greater than the        time difference threshold.

In some embodiments, the local environment information includes localtime information, and the local time information includes a terminalsystem time and a GPS time.

The second obtaining unit is further configured to:

-   -   determine the terminal system time as the real-time time in        response to not obtaining the GPS time or a time difference        between the GPS time and the terminal system time being less        than a time difference threshold; and    -   determine the GPS time as the real-time time in response to the        time difference between the terminal system time and the GPS        time being greater than the time difference threshold.

In some embodiments, cloud location information in the cloud environmentinformation is a server-determined positioning location.

The second obtaining unit is further configured to:

-   -   determine the server-determined positioning location as a        real-time location.

In some embodiments, the local environment information includes locallocation information, and the local location information includes a GPSpositioning location and a historical positioning location.

The second obtaining unit is further configured to:

-   -   determine the GPS positioning location as the real-time location        in response to obtaining the GPS positioning location;    -   determine a last positioning location in the historical        positioning location as the real-time location in response to        not obtaining the GPS positioning location; and    -   determine a default navigation location as the real-time        location in response to not obtaining the GPS positioning        location and in the absence of the historical positioning        location.

The term module (and other similar terms such as submodule, unit,subunit, etc.) in this disclosure may refer to a software module, ahardware module, or a combination thereof. A software module (e.g.,computer program) may be developed using a computer programminglanguage. A hardware module may be implemented using processingcircuitry and/or memory. Each module can be implemented using one ormore processors (or processors and memory). Likewise, a processor (orprocessors and memory) can be used to implement one or more modules.Moreover, each module can be part of an overall module that includes thefunctionalities of the module.

FIG. 16 is a structural block diagram of a terminal 1600 according to anexemplary embodiment of the present disclosure. The terminal 1600 may bea portable mobile terminal, such as a smartphone, a tablet personalcomputer, a moving picture experts group audio layer III (MP3) player,or a moving picture experts group audio layer IV (MP4) player. Theterminal 1600 may also be referred to as a user equipment, a portableterminal, or another name.

Generally, the terminal 1600 includes: a processor 1601 and a memory1602.

The processor 1601 may include one or more processing cores, forexample, a 4-core processor or an 8-core processor. The processor 1601may be implemented in at least one hardware form of a digital signalprocessor (DSP), a field-programmable gate array (FPGA), and aprogrammable logic array (PLA). The processor 1601 may further include amain processor and a co-processor. The main processor is a processor forprocessing data in a wake-up state, and is also referred to as a centralprocessing unit (CPU). The co-processor is a low-power processor forprocessing data in a standby state. In some embodiments, the processor1601 may be integrated with a graphics processing unit (GPU). The GPU isresponsible for rendering and drawing content to be displayed by adisplay screen. In some embodiments, the processor 1601 may furtherinclude an artificial intelligence (AI) processor. The AI processor isconfigured to process computing operations related to machine learning.

The memory 1602 may include one or more computer-readable storage media.The computer-readable storage media may be tangible and non-transitory.The memory 1602 may further include a high-speed random access memoryand a nonvolatile memory, for example, one or more disk storage devicesor flash storage devices. In some embodiments, the non-transitorycomputer-readable storage medium in the memory 1602 is configured tostore at least one instruction. The at least one instruction is used forexecution by the processor 1601 to implement the method according to theforegoing embodiment of the present disclosure.

In some embodiments, the terminal 1600 may further include: a peripheralinterface 1603 and at least one peripheral. Specifically, the peripheralincludes: at least one of a radio frequency (RF) circuit 1604, a touchdisplay screen 1605, a camera assembly 1606, an audio circuit 1607, apositioning assembly 1608, and a power supply 1609.

The peripheral interface 1603 may be configured to connect the at leastone peripheral related to input/output (I/O) to the processor 1601 andthe memory 1602. In some embodiments, the processor 1601, the memory1602, and the peripheral interface 1603 are integrated on the same chipor circuit board. In some other embodiments, any one or two of theprocessor 1601, the memory 1602 and the peripheral interface 1603 may beimplemented on a separate chip or circuit board. This is not limited bythis embodiment.

The RF circuit 1604 is configured to receive and transmit an RF signal,also referred to as an electromagnetic signal. The RF circuit 1604communicates with a communication network and other communicationdevices through the electromagnetic signal. The RF circuit 1604 convertsan electrical signal into the electromagnetic signal for transmission,or converts the received electromagnetic signal into the electricalsignal. In some embodiments, the RF circuit 1604 includes: an antennasystem, an RF transceiver, one or more amplifiers, a tuner, anoscillator, a digital signal processor, a codec chip set, a subscriberidentity module card, and the like. The RF circuit 1604 may communicatewith other terminals through at least one wireless communicationprotocol. The wireless communication protocol includes, but is notlimited to: World Wide Web, metropolitan area networks, Intranets,generations of mobile communication networks (2G, 3G, 4G, and 5G),wireless local area networks, and/or WiFi networks.

The touch display screen 1605 is configured to display a user interface(UI). The UI may include a graph, text, an icon, a video, and anycombination thereof. The touch display screen 1605 also has the abilityto collect a touch signal at or above the surface of the touch displayscreen 1605. The touch signal may be inputted to the processor 1601 as acontrol signal for processing. The touch display screen 1605 isconfigured to provide virtual buttons and/or virtual keyboards, alsoreferred to as soft buttons and/or soft keyboards. In some embodiments,there may be one touch display screen 1605 disposed on a front panel ofthe terminal 1600. In some other embodiments, there may be at least twotouch display screens 1605 respectively disposed on different surfacesof the terminal 1600 or in a folded design. In still other embodiments,the touch display screen 1605 may be a flexible display screen disposedon a curved or folded surface of the terminal 1600. Even further, thetouch display screen 1605 may be arranged in a non-rectangular irregularpattern, namely a special-shaped screen. The touch display screen 1605may be made of materials such as a liquid crystal display (LCD) and anorganic light-emitting diode (OLED).

The camera assembly 1606 is configured to capture images or videos. Insome embodiments, the camera assembly 1606 includes a front camera and arear camera. Generally, the front camera is configured to realize videocall or selfie, and the rear camera is configured to capture photos orvideos. In some embodiments, there are at least two rear cameras: anyone of a main camera, a depth-of-field camera, and a wide-angle camera,so as to realize the fusion of the main camera and the depth-of-fieldcamera to realize a bokeh function, and the fusion of the main cameraand the wide-angle camera to realize a panoramic photographing and avirtual reality (VR) photographing function. In some embodiments, thecamera assembly 1606 may further include a flash. The flash may be amonochrome temperature flash, or may be a double color temperatureflash. The double color temperature flash refers to a combination of awarm light flash and a cold light flash, and may be used for lightcompensation under different color temperatures.

The audio circuit 1607 is configured to provide an audio interfacebetween a user and the terminal 1600. The audio circuit 1607 may includea microphone and a speaker. The microphone is configured to acquiresound waves of a user and an environment, and convert the sound wavesinto an electrical signal to input to the processor 1601 for processing,or input to the radio frequency circuit 1604 for implementing voicecommunication. For the purpose of stereo acquisition or noise reduction,there may be multiple microphones disposed at different parts of theterminal 1600 respectively. The microphones may also be arraymicrophones or omni-directional acquisition type microphones. Thespeaker is configured to convert electrical signals from the processor1601 or the radio frequency circuit 1604 into sound waves. The speakermay be a film speaker, or may be a piezoelectric ceramic speaker. Whenthe speaker is the piezoelectric ceramic speaker, the speaker not onlycan convert an electric signal into acoustic waves audible to a humanbeing, but also can convert an electric signal into acoustic wavesinaudible to a human being, for ranging and other purposes. In someembodiments, the audio circuit 1607 may further include a headphonejack.

The positioning assembly 1608 is configured to position a currentgeographic location of the terminal 1600 to enable navigation orlocation based services (LBS).

The power supply 1609 is configured to supply power to components in theterminal 1600. The power supply 1609 may be alternating current, directcurrent, disposable or rechargeable batteries. When the power supply1609 includes a rechargeable battery, and the rechargeable battery maybe a wired rechargeable battery or a wireless rechargeable battery. Thewired rechargeable battery is a battery charged through a wired circuit,and the wireless rechargeable battery is a battery charged through awireless coil. The rechargeable battery may be further configured tosupport a fast charging technology.

In some embodiments, the terminal 1600 further includes one or moresensors 1610. The one or more sensors 1610 include, but are not limitedto, an acceleration sensor 1611, a gyroscope sensor 1612, a pressuresensor 1613, an optical sensor 1615, and a proximity sensor 1616.

The acceleration sensor 1611 may detect the magnitude of accelerationson three coordinate axes of a coordinate system established with theterminal 1600. For example, the acceleration sensor 1611 may beconfigured to detect the component of gravitational acceleration on thethree coordinate axes. The processor 1601 may control the touch displayscreen 1605 to display the UI in a horizontal view or a vertical viewaccording to a gravity acceleration signal collected by the accelerationsensor 1611.

The gyroscope sensor 1612 may detect a body direction and a rotationangle of the terminal 1600. The gyroscope sensor 1612 may cooperate withthe acceleration sensor 1611 to acquire a 3D action by the user on theterminal 1600. The processor 1601 may realize the following functionsbased on data collected by the gyroscope sensor 1612: motion sensing(such as changing the UI according to a tilting operation of the user),image stabilization at the time of photographing, game control, andinertial navigation.

The pressure sensor 1613 may be disposed on a side frame of the terminal1600 and/or a lower layer of the touch display screen 1605. When thepressure sensor 1613 is disposed on the side frame of the terminal 1600,a grip signal of the user to the terminal 1600 may be detected, and leftor right hand recognition or quick operations may be performed accordingto the grip signal. When the pressure sensor 1613 is disposed on thelower layer of the touch display screen 1605, an operable control on theUI may be controlled according to a pressure operation of the user onthe touch display screen 1605. The operable control includes at leastone of a button control, a scroll-bar control, an icon control, and amenu control.

The optical sensor 1615 is configured to acquire ambient lightintensity. In one embodiment, the processor 1601 may control the displaybrightness of the touch display screen 1605 according to ambient lightintensity collected by the optical sensor 1615. Specifically, when theambient light intensity is high, the display brightness of the touchdisplay screen 1605 is turned up. When the ambient light intensity islow, the display brightness of the touch display screen 1605 is turneddown. In another embodiment, the processor 1601 may further dynamicallyadjust a photographing parameter of the camera assembly 1606 accordingto the ambient light intensity collected by the optical sensor 1615.

The proximity sensor 1616, also referred to as a distance sensor, istypically disposed on the front of the terminal 1600. The proximitysensor 1616 is configured to collect a distance between the user and thefront of the terminal 1600. In one embodiment, when the proximity sensor1616 detects that the distance between the user and the front of theterminal 1600 is gradually reduced, the processor 1601 controls thetouch display screen 1605 to switch from a screen-on state to ascreen-off state. When the proximity sensor 1616 detects that thedistance between the user and the front of the terminal 1600 isgradually increased, the touch display screen 1605 is controlled by theprocessor 1601 to switch from the screen-off state to the screen-onstate.

It is to be understood by a person skilled in the art that the structureshown in FIG. 16 is not limiting of the terminal 1600 and may includemore or fewer assemblies than illustrated, or some assemblies may becombined, or different assembly arrangements may be employed.

This embodiment of the present disclosure also provides acomputer-readable storage medium. The computer-readable storage mediumstores at least one computer instruction. The at least one computerinstruction is loaded and executed by a processor to implement thenavigation interface display method according to the above embodiments.

According to an aspect of the present disclosure, a computer programproduct or computer program is provided. The computer program product orcomputer program includes computer instructions. The computerinstructions are stored in a computer-readable storage medium. Aprocessor of a terminal reads the computer instructions from thecomputer-readable storage medium. The processor executes the computerinstructions to cause the terminal to perform the navigation interfacedisplay method according to the various example implementations in theforegoing aspects.

It is to be understood that relevant data such as real-time environmentinformation of the terminal, namely real-time time information,real-time location information, and real-time weather information isinvolved in the specific implementations of the present disclosure. Whenthe above embodiments of the present disclosure are applied to aparticular product or technology, user approval or consent is required,and collection, use and processing of the relevant data is required tocomply with relevant national and regional laws and regulations andstandards.

What is claimed is:
 1. A navigation interface display method, performedby a terminal, the method comprising: obtaining real-time environmentinformation, the real-time environment information comprising real-timelocation information and real-time time information; determining a firstinterface component based on a first navigation scene corresponding tothe real-time environment information, the first interface componentcomprising a first base map and a first sky box, the first base mapindicating a road surface environment, the first sky box indicating asky environment, and styles of interface components corresponding todifferent navigation scenes being different; and displaying a navigationinterface obtained by fusing the first base map and the first sky box.2. The method according to claim 1, wherein the determining a firstinterface component based on a first navigation scene corresponding tothe real-time environment information comprises: determining a firstscene view corresponding to the first navigation scene based on thereal-time location information and the real-time time information;determining the first base map corresponding to the first scene viewbased on correspondences between scene views and base map styles, thebase map styles corresponding to navigation scenes of different sceneviews being different; and determining the first sky box correspondingto the first scene view based on correspondences between the scene viewsand sky box styles, the sky box styles corresponding to navigationscenes of different scene views being different.
 3. The method accordingto claim 2, wherein the determining a first scene view corresponding tothe first navigation scene based on the real-time location informationand the real-time time information comprises: determining a sunup timeand a sundown time corresponding to a real-time location based onlatitude and longitude in the real-time location information and a datein the real-time time information; determining time periodscorresponding to the scene views based on the sunup time, the sundowntime, time differences between the time periods corresponding to thescene views and the sunup time, and time differences between the timeperiods corresponding to the scene views and the sundown time; anddetermining the first scene view based on correspondences between thescene views and the time periods and a first time period among the timeperiods corresponding to the scene views indicated by the real-time timeinformation.
 4. The method according to claim 2, wherein the determiningthe first base map corresponding to the first scene view based oncorrespondences between scene views and base map styles comprises:determining a first scene weather corresponding to the first scene viewbased on the real-time location information and the real-time timeinformation; determining the first base map corresponding to the firstscene view and the first scene weather based on correspondences of thescene views and scene weathers to the base map styles, the base mapstyles corresponding to different scene weathers under the same sceneview being different; and the determining the first sky boxcorresponding to the first scene view based on correspondences betweenthe scene views and sky box styles comprises: determining the first skybox corresponding to the first scene view and the first scene weatherbased on correspondences of the scene views and the scene weathers tothe sky box styles, the sky box styles corresponding to different sceneweathers under the same scene view being different.
 5. The methodaccording to claim 1, wherein the first base map is connected to thefirst sky box, and a region in a first height above a contact surfacebetween the first base map and the first sky box is a transition region;and the displaying a navigation interface obtained by fusing the firstbase map and the first sky box comprises: combining the first base mapand the first sky box to obtain a first virtual scene; transparentlymixing the transition region in the first virtual scene, thetransparently-mixed transition region being displayed with asemi-transparent effect; and displaying the navigation interface basedon a navigation picture obtained by photographing the first virtualscene via a virtual camera.
 6. The method according to claim 5, whereina virtual object having an intersection with a sky box display region inthe navigation picture is displayed as a semi-transparent effect, thesky box display region is determined based on a skew angle adjustmentrange, a scale adjustment range, and a scaling operation, and thescaling operation is configured to adjust a scale and a skew angle ofthe virtual camera.
 7. The method according to claim 5, wherein thedisplaying the navigation interface based on a navigation pictureobtained by photographing the first virtual scene via a virtual cameracomprises: determining a skew angle of the virtual camera based on askew angle adjustment range, a scale adjustment range, and a firstscale, the first scale being determined based on a default scale and areceived scaling operation; determining a display proportion of a firstsky box display region to a maximum sky box display region based on aratio of a first angle difference to a second angle difference, thefirst angle difference being an angle difference between the skew angleand a minimum angle in the skew angle adjustment range, and the secondangle difference being an angle difference between a maximum angle andthe minimum angle in the skew angle adjustment range; determining a skybox display region of the first sky box and a base map display region ofthe first base map based on the display proportion and the maximum skybox display region; processing a virtual object with a semi-transparenteffect to obtain the semi-transparent navigation picture, the virtualobject having an intersection with the sky box display region of thefirst sky box in the base map display region of the first base map; anddisplaying the navigation interface based on the semi-transparentnavigation picture.
 8. The method according to claim 1, wherein thedisplaying a navigation interface obtained by fusing the first base mapand the first sky box comprises: obtaining a real-time solar altitudeangle corresponding to the real-time time information and the real-timelocation information; determining a first shadow effect of a virtualobject on the first base map based on the real-time solar altitudeangle, the real-time time information, and the real-time locationinformation; and displaying, according to the first shadow effect, thenavigation interface obtained by fusing the first base map and the firstsky box.
 9. The method according to claim 8, wherein the obtaining areal-time solar altitude angle corresponding to the real-time timeinformation and the real-time location information comprises:determining a direct solar radiation latitude based on the date in thereal-time time information; and determining the real-time solar altitudeangle based on a real-time latitude in the real-time locationinformation and the direct solar radiation latitude.
 10. The methodaccording to claim 1, wherein the obtaining real-time environmentinformation comprises: determining a navigation interface update policybased on a first network quality, the navigation interface update policycomprising an online policy and an offline policy; and obtaining thereal-time environment information through the navigation interfaceupdate policy.
 11. The method according to claim 10, wherein thedetermining a navigation interface update policy based on a firstnetwork quality comprises: transmitting a network quality detectionrequest to a background server in response to a navigation interfaceupdate instruction; determining that the navigation interface updatepolicy is the online policy in response to receiving a network qualitydetection response transmitted by the background server indicating thata network quality is normal; and determining that the navigationinterface update policy is the offline policy in response to receivingthe network quality detection response indicating that the networkquality being abnormal, or not receiving the network quality detectionresponse within a first duration.
 12. The method according to claim 11,wherein the transmitting a network quality detection request to abackground server comprises: obtaining local environment information;transmitting the network quality detection request and an informationobtaining request to the background server, the information obtainingrequest comprising the local environment information, and the backgroundserver being configured to determine cloud environment information basedon the local environment information and transmit the cloud environmentinformation to the terminal in response to that the network quality isnormal; and the obtaining the real-time environment information throughthe navigation interface update policy comprises: determining thereal-time environment information based on the local environmentinformation and the cloud environment information in the network qualitydetection response in response to the navigation interface update policybeing the online policy; and determining the local environmentinformation as the real-time environment information in response to thenavigation interface update policy being the offline policy.
 13. Themethod according to claim 12, wherein the local environment informationcomprises local time information, the local time information comprises aterminal system time and a global positioning system (GPS) time, andcloud time information in the cloud environment information is a servertime; and the determining the real-time environment information based onthe local environment information and the cloud environment informationin the network quality detection response comprises: determining theterminal system time as a real-time time in response to a timedifference between any two of the terminal system time, the server time,and the GPS time being less than a time difference threshold;determining the GPS time as the real-time time in response to the timedifference between the terminal system time and the GPS time beinggreater than the time difference threshold; and determining the servertime as the real-time time in response to not obtaining the GPS time andthe time difference between the terminal system time and the server timebeing greater than the time difference threshold.
 14. The methodaccording to claim 12, wherein the local environment informationcomprises local time information, and the local time informationcomprises a terminal system time and a GPS time; and the determining thelocal environment information as the real-time environment informationcomprises: determining the terminal system time as a real-time time inresponse to not obtaining the GPS time or a time difference between theGPS time and the terminal system time being less than a time differencethreshold; and determining the GPS time as the real-time time inresponse to the time difference between the terminal system time and theGPS time being greater than the time difference threshold.
 15. Themethod according to claim 12, wherein cloud location information in thecloud environment information is a server-determined positioninglocation; and the determining the real-time environment informationbased on the local environment information and the cloud environmentinformation in the network quality detection response comprises:determining the server-determined positioning location as a real-timelocation.
 16. The method according to claim 12, wherein the localenvironment information comprises local location information, and thelocal location information comprises a GPS positioning location and ahistorical positioning location; and the determining the localenvironment information as the real-time environment informationcomprises: determining the GPS positioning location as a real-timelocation in response to obtaining the GPS positioning location;determining a last positioning location in the historical positioninglocation as the real-time location in response to not obtaining the GPSpositioning location; and determining a default navigation location asthe real-time location in response to not obtaining the GPS positioninglocation and in the absence of the historical positioning location. 17.A navigation interface display apparatus, the apparatus comprising: atleast one processor and at least one memory, the at least one memorystoring at least one instruction, at least one program, a code set, oran instruction set, and the at least one instruction, the at least oneprogram, the code set, or the instruction set being loaded and executedby the at least one processor to implement: obtaining real-timeenvironment information, the real-time environment informationcomprising real-time location information and real-time timeinformation; determining a first interface component based on a firstnavigation scene corresponding to the real-time environment information,the first interface component comprising a first base map and a firstsky box, the first base map indicating a road surface environment, thefirst sky box indicating a sky environment, and styles of interfacecomponents corresponding to different navigation scenes being different;and displaying a navigation interface obtained by fusing the first basemap and the first sky box.
 18. The apparatus according to claim 17,wherein the determining a first interface component based on a firstnavigation scene corresponding to the real-time environment informationcomprises: determining a first scene view corresponding to the firstnavigation scene based on the real-time location information and thereal-time time information; determining the first base map correspondingto the first scene view based on correspondences between scene views andbase map styles, the base map styles corresponding to navigation scenesof different scene views being different; and determining the first skybox corresponding to the first scene view based on correspondencesbetween the scene views and sky box styles, the sky box stylescorresponding to navigation scenes of different scene views beingdifferent.
 19. The apparatus according to claim 18, wherein thedetermining a first scene view corresponding to the first navigationscene based on the real-time location information and the real-time timeinformation comprises: determining a sunup time and a sundown timecorresponding to a real-time location based on latitude and longitude inthe real-time location information and a date in the real-time timeinformation; determining time periods corresponding to the scene viewsbased on the sunup time, the sundown time, time differences between thetime periods corresponding to the scene views and the sunup time, andtime differences between the time periods corresponding to the sceneviews and the sundown time; and determining the first scene view basedon correspondences between the scene views and the time periods and afirst time period among the time periods corresponding to the sceneviews indicated by the real-time time information.
 20. A non-transitorycomputer-readable storage medium, the computer-readable storage mediumstoring at least one computer instruction, and the at least one computerinstruction being loaded and executed by at least one processor toimplement: obtaining real-time environment information, the real-timeenvironment information comprising real-time location information andreal-time time information; determining a first interface componentbased on a first navigation scene corresponding to the real-timeenvironment information, the first interface component comprising afirst base map and a first sky box, the first base map indicating a roadsurface environment, the first sky box indicating a sky environment, andstyles of interface components corresponding to different navigationscenes being different; and displaying a navigation interface obtainedby fusing the first base map and the first sky box.